@import 'color';

.color-success {
  color: $color-success !important;
}
.color-danger {
  color: $color-danger !important;
}
.color-info {
  color: $color-text-secondary-assist !important;
}
.color-warning {
  color: $color-warning;
}
.color-primary {
  color: $color-primary;
}
.text-left {
  text-align: left !important;
}
.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}

.form-item-tip {
  color: $color-text-secondary-assist;
  line-height: 1.5;
  margin: 8px 0;
}

#content {
  position: absolute;
  width: 100%;
  height: 100%;
}

a {
  transition: linear 0.2s background-color;
}

body {
  font-size: 12px;
  line-height: 18px;
}

.btn-line {
  button, a {
    display: inline-block;
    margin-right: 10px;
  }
}
.horizontal-group {
  > * {
    margin-right: 10px;
  }
}

ul.list {
  margin: 0;
  padding: 0;
  list-style: none;

  > li {
    border-bottom: 1px solid $color-border-light;

    &:last-of-type {
      border-bottom: none;
    }
  }
}

.simple-list {
  > li {
    padding: 5px 0;
    line-height: 20px;
  }

  .list-img {
    display: block;
    float: left;

    width: 20px;
    height: 20px;

    margin-right: 10px;
  }
}

.iconfont {
  vertical-align: middle;
  display: inline-block;
  line-height: 1em;
}

.index-wrapper {
  width: 1200px;
  margin: 0 auto;

  position: relative;
}

.divider {
  display: block;
  border-bottom: 1px solid $color-border-light;
  margin: 20px 0;
}

.flex-table {
  display: table;
}
.flex-table-item {
  display: table-cell;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.flex-table-item-primary {
  width: 99%;
}

.card-head {
  background-color: $color-background;
  color: $color-text;
  padding: 10px 20px;
}
.card-content {
  background-color: $white;
  padding: 20px;
}

.table-list {
  display: table;
  width: 100%;
  table-layout: fixed;

  padding: 0;
  margin: 0;

  border-bottom: 1px solid $color-border-light;
}
.table-list-item {
  display: table-row;
}
.table-list-cell {
  display: table-cell;
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: middle;

  border-top: 1px solid $color-border-light;

  &:first-child {
    border-left: 1px solid $color-border-light;
  }
  &:last-child {
    border-right: 1px solid $color-border-light;
  }
}
.table-list-cell-checkbox {
  width: 40px;
  text-align: center;

  input[type=checkbox] {
    margin-right: 0;
  }
}
.table-list-header {
  margin: -1px;
  border: 1px solid $color-border-light;
  background-color: $color-background;
}
.table-list-header-select-all {
  float: left;
  width: 40px;
  text-align: center;
  padding: 12px 0;

  input[type=checkbox] {
    margin-right: 0;
  }
}
.table-list-header-meta {
  display: inline-block;
  padding: 13px 0;
}

.label {
  border-radius: 2px;
  padding: 2px 4px;
  font-size: 12px;
  color: $color-text-assist;
  background-color: $color-border-dark;
}
.label.label-danger {
  color: $white;
  background-color: $color-danger;
}

.search-form {
  padding-bottom: 20px;
  border-bottom: 1px solid $color-border-light;
  margin-bottom: 20px;
}
